The Link element indicates a relationship between the document and some other object. A document may have any number of Link elements.
The Link element is empty (does not have a closing element), but takes the same attributes as the Anchor element.
The <LINK>
element would typically be used to provide pointers to related indexes, or glossaries. Links can also be used to indicate a static tree structure in which the document was authored by pointing to a "parent" and "next" and "previous" document. Mosaic (v3.0 for Windows 95/NT4) totally supports the <LINK>
element and presents the user with a toolbar populated with buttons for every <LINK>
element specified.<LINK REL="...">
is one that Mosaic recognises, it will show the toolbar button with a pre-set graphic, together with whatever text is specified in the TITLE attribute, as the text on the button. The remote location, specified in the HREF attribute is the location that Mosaic will browse to when the button is clicked. Below is a list of the possible preset REL
attributes that Mosaic recognises together with the graphic it uses for the toolbar button (on Windows 95 systems).
REL
="stylesheet"
TITLE
attribute is given.
REL
="home" (TITLE
attribute is given.
REL
="toc"|"contents" (REL
attribute value and Mosaic supplies 'ToC' if no TITLE
attribute is given.
REL
="index" (TITLE
attribute is given.
REL
="glossary" (TITLE
attribute is given.
REL
="copyright" (REL
attribute value. Mosaic supplies 'Copyright' if no TITLE
attribute is given.
REL
="up"|"parent" (TITLE
is given.
REL
="child" (TITLE
is given.
REL
="next" (TITLE
attribute is given.
REL
="previous" (TITLE
attribute is given.
REL
="last"|"end" (TITLE
is given.
REL
="first" (TITLE
is given.
REL
="help" (TITLE
is given.
You can set the REL
attribute to be anything you like, as well as the above pre-sets. Mosaic will supply a default image () for these toolbar buttons and will use the text 'Bookmark' if no
TITLE
attribute is provided.
Mosaic also supports use of the REV="made" attribute/value. This should be used to denote the author of the document and the HREF
attribute should use a HREF="mailto:address@site.com"
structure. Mosaic will use it's default graphic (see above) and default text ('Bookmark') if no TITLE
attribute is given.
The <LINK>
element represents one of the primary style sheet inclusion mechanism elements. It can be used to specify the location of the style sheet that is to be used for the document.
<HTML>
<HEAD>
<TITLE>This HTML document uses a style sheet</TITLE>
<LINK REL="stylesheet"
TYPE="text/css"
HREF="http://www.stylesheets.com/sheets/formal.css"
TITLE="formal">
</HEAD>
<BODY>
Rest of the document goes here
</BODY>
</HTML>
In the above HTML fragment, the <LINK>
element points to the file "formal.css" at the given URL. It tells the browser that :
TYPE
;
REL
ationship to the HTML document is that it is a "stylesheet";
TITLE
is "formal".
For more information about these specific attributes, see the <A>
section and for more general information about style sheets, see the style sheets section.